package com.ctsi.framework.common.domain;

/**
 * @Auther: zhangjw
 * @Date: 2018/8/11 19:09
 * @Description: 带有乐观锁控制的domain基类
 */
public abstract class BaseEntityWithRevision extends BaseEntity implements HasRevision {

    protected int revision;


    @Override
    public int getRevision() {
        return revision;
    }

    @Override
    public void setRevision(int revision) {

    }

    @Override
    public int getRevisionNext() {
        return this.revision+1;
    }



}
